package com.ciwong.epaper.modules.me.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.ciwong.epaper.modules.me.bean.BookmarkBean;
import com.ciwong.epaper.modules.me.bean.FunctionsBean;
import com.ciwong.epaper.widget.ExpansionItemView;
import com.ciwong.epaper.widget.FunctionItemInView;
import com.ciwong.mobilelib.bean.BaseBean;

import java.util.List;

/**
 * Created by keepon on 2018/8/7.
 */
public class NewBookFunctionsAdapter extends  BaseNewBookItemInAdapter<FunctionsBean>{

	public NewBookFunctionsAdapter(Context context, List<FunctionsBean> datas) {
		super(context, datas);
	}

	@Override
	protected ViewHolder creatViewHolde(ViewGroup parent, int viewType) {
		return new ViewHolder(new FunctionItemInView(mContext));
	}

	@Override
	public void bindData(View itemView, int position, FunctionsBean bookmarkBean) {
        FunctionItemInView functionItemInView=(FunctionItemInView) itemView;
		functionItemInView.bindData(bookmarkBean);

	}
}
